package com.sgai.zero_robot.ui.alarm;


import com.sgai.zero_robot.base.BaseAdapter;
import com.sgai.zero_robot.databinding.ItemAlarmLineBinding;
import com.sgai.zero_robot.pojo.AlarmInfo;
import com.sgai.zero_robot.utils.DateUtils;

public class AlarmListAdapter extends BaseAdapter<AlarmInfo, ItemAlarmLineBinding> {

    @Override
    protected void onBindView(ItemAlarmLineBinding binding, int position, AlarmInfo info) {
        binding.tvTime.setText(DateUtils.longToDate(info.getTime()));
        binding.tvData.setText(info.getSource());
        binding.tvDetail.setText(info.getMsg());
    }
}